package com.tuanzi.loan.vo.response.family;

import com.tuanzi.loan.core.vo.IdentityResponse;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * ICP备案网站敏感字管理 SearchResponse
 * @author JinRuiyang 2017/12/13 18:02:17
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class IcpWebSensitiveKeywordSearchResponse extends IdentityResponse {

    // 主键
    private Long pk;

    // 敏感词
    private String keyword;

    // 状态
    private Integer status;

    // 是否可用
    private Integer isEnable;

    public boolean isPublish(){
        return status == 1;
    }

    public String getStatusStr(){
        return isPublish() ? "已上线" : "待上线";
    }
}
